package com.Ajava1801D.并发包.conditation01;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/10/7  14:06
 * 描述:
 */
public class Test02Condition {

    public static void main(String[] args) {

        Lock lock=new ReentrantLock();

        Condition condition=lock.newCondition();

        Thread t3=new Thread(new MyRunable003(condition,lock));
        Thread t4=new Thread(new MyRunable004(condition,lock));

        t3.start();

        t4.start();




    }

}
